[Groovy] Class HunterGatherer

java.lang.Object
  fhg2a.ReLogoTurtle
      Tribe
          HunterGatherer

class HunterGatherer
extends Tribe

Tribe that relies on both wild cereal and prey for sustenance, and has perfect global knowledge. Divides annual foraging time proportionately between the two resources according to their net acquisition rates.


Method Summary
java.lang.Object forage()

Forage one year's worth of prey and cereal.

java.lang.Object move()

Move tribe to the best patch on the grid (including patch it is on).

 
Methods inherited from class Tribe
agentOnDesert, agentOnLush, agentOnMiddle, birthsOnDesert, birthsOnLush, birthsOnMiddle, cull, deathsOnDesert, deathsOnLush, deathsOnMiddle, forage, migrationsToDesert, migrationsToLush, migrationsToMiddle, move, reproduce, reset, step
 

Method Detail

forage

java.lang.Object forage()
Forage one year's worth of prey and cereal. Decrease population if enough food is not gathered.


move

java.lang.Object move()
Move tribe to the best patch on the grid (including patch it is on). Patches are ranked by prey density then cereal density.